package com.VancouverTongue.bean;

import com.VancouverTongue.database.HelpObj;

public class Messagebody {

	private int messageId;
	private String body;
	private int parts;

	public Messagebody() {
		messageId = 0;
		body = "";
		parts = 0;
	}

	public int getMessageId() {
		return messageId;
	}

	public void setMessageId(int messageid) {
		this.messageId = messageid;
	}

	public String getBody() {
		return body;
	}

	public void setBody(String body) {
		this.body = HelpObj.HTMLcheck(body);
		this.body = HelpObj.checkString(this.body, 50);
	}

	public int getParts() {
		return parts;
	}

	public void setParts(int parts) {
		this.parts = parts;
	}

	public void addMessagebodyObj(int messageid, String body, int parts) {
		this.messageId = messageid;
		this.body = HelpObj.HTMLcheck(body);
		this.parts = parts;
		///////////
		this.body = HelpObj.checkString(this.body, 50);
	}

}
